;(function () {
  'use strict';
  angular.module('controllers.alarmDataAnalysis.multidimensionalAnalysis')
    .controller('analysisDataByBusinessCtrl', analysisDataByBusinessCtrl);

  function analysisDataByBusinessCtrl($scope, CoreService,analysisDataByBusinessService,$mdDialog,COREDATA) {
    $scope.analysisDataByBusiness = analysisDataByBusinessService;
    analysisDataByBusinessService.initSelectMenu();   //初始化页面下拉框数据
    $scope.exportUrl = COREDATA.FORMPREFIX + 'alarmData/analysisByBusiness/exportExcelData';
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      analysisDataByBusinessService.reset();
      $mdDialog.hide();
    });
  }
  analysisDataByBusinessCtrl.$inject = ['$scope','CoreService','analysisDataByBusinessService','$mdDialog','COREDATA'];
})();